var app = getApp();
Page({
  onLoad(options) {
    wx.showLoading({
      title: '小程序加载中',
      mask: true
    })
  },
  onReady() {
    setTimeout(() => {
      if (getCurrentPages().length == 1 && getCurrentPages()[0].route == "pages/loading/loading") {
        app.checkLogin()
      }
    }, 5000)
  }
})